package com.atguigu.gulimall.order.feign;

import com.atguigu.gulimall.order.vo.OrderItemVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

/**
 * @ ClassName CartFeignService
 * @ Description TODO
 * @ Author admin
 * @ Date 2021/3/30 12:35
 * @ Version 1.0
 */
@FeignClient("gulimall-cart")
public interface CartFeignService {
    /**
     * 获取当前用户的购物车商品项
     * @return
     */
    @GetMapping(value = "/currentUserCartItems")
    @ResponseBody
    List<OrderItemVo> getCurrentCartItems();
}
